package com.totem.order.controller;

import com.totem.base.model.Result;
import com.totem.base.mybatis.controller.BaseController;
import com.totem.order.api.ITWalletServiceApi;
import com.totem.order.model.TWallets;
import com.totem.order.service.ITWalletService;
import com.totem.order.vo.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class WalletController extends BaseController<ITWalletService, TWallets> implements ITWalletServiceApi {
    @Override
    public Result<GoodsPaymentVO> goodsPayment(GoodsPaymentVO vo) {
        return Result.success(service.goodsPayment(vo));
    }

    @Override
    public Result<SubscribePaymentVO> subscribePayment(SubscribePaymentVO vo) {
        return Result.success(service.subscribePayment(vo));
    }
}
